package com.tarena.lbs.mapper;

import com.tarena.lbs.entity.CouponCode;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CouponCodeMapper {
    CouponCode getCouponCodeByCode(String couponCode);
    List<CouponCode> listAvailableCodesByCouponId(Integer couponId, Integer count);
    int updateCouponCodeStatus(Integer id, Integer status);
    int batchInsertCouponCodes(List<CouponCode> codes);
}